//
//  CAIUpgradeTool.h
//  CHSUpgradeManager
//
//  Created by simon on 2021/9/18.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "UIColor+CAIUpgrade.h"
#import "NSString+CAIUpgrade.h"

#define SCREEN_HEIGHT ([[UIScreen mainScreen] bounds].size.height)
#define SCREEN_WIDTH ([[UIScreen mainScreen] bounds].size.width)
#ifndef LCDScale_iPhone6
#define LCDScale_iPhone6(X)    ((X)*SCREEN_WIDTH/375)
#endif

NS_ASSUME_NONNULL_BEGIN

@interface CAIUpgradeTool : NSObject


/// 获取当前appDelegate的window
+ (UIWindow *)mainWindow;


/// 获取当前控制器
+ (UIViewController*)currentViewControllerWithCheckPresented:(BOOL)checkCurrentViewPresented;


/// json对象转为字符串
/// @param responseObject responseObject description
+ (NSString *)getJSONSerializationStringFromJSONObject:(nullable id)responseObject;



+ (UIImage *)bundleImageNamed:(NSString *)name;

@end

NS_ASSUME_NONNULL_END
